{include file="public/header" select="0" /}

<body>
<div class="title bgc">
    <i class="layui-icon layui-icon-left" onclick="goBack()"></i>
    我要转换
</div>
<form action="{:url('exchange/save')}" method="post" class="form layui-form">
    <ul class="set-form bgc">
        <li>
            <span>转出账户</span>
            <div class="layui-form">
                <select name="account">
                    <option value="bonus">奖金(余额:{$user.assets.bonus})</option>
                    <option value="currency">电子币(余额:{$user.assets.currency})</option>
                </select>
            </div>
        </li>
        <li>
            <span>转入账户</span>
            <div class="layui-form">
                <select name="take_account">
                    <option value="currency">电子币(余额:{$user.assets.currency})</option>
                    <option value="bonus">奖金(余额:{$user.assets.bonus})</option>
                </select>
            </div>
        </li>

        <li>
            <span>转换金额</span>
            <label>
                <input type="text" lay-verify="required" lay-reqtext="请填写转换金额" lay-verType="tips"
                       name="amount" placeholder="请填写转换金额"
                       onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" autocomplete="off">
            </label>
        </li>
        <li>
            <span>支付密码</span>
            <label><input type="password" lay-verify="required" lay-reqtext="请输入支付密码" lay-verType="tips"
                          name="pay_password" placeholder="请输入支付密码"></label>
        </li>
    </ul>
    <div class="pay-btn" lay-submit lay-filter="save" formObj=".form"><a>确定</a></div>
</form>
<div class="pay-btn tran-btn"><a href="{:url('exchange/record')}">转换记录</a></div>
</body>
{include file="public/footer" select="0" /}
